import request from '@/utils/request'

// 获取各项提醒时间列表
export const getReminderList = (params) => {
  return request({
    url: `/v1/basic/reminder`,
    method: 'GET',
    params
  })
}

// 开启/关闭提醒
export const setReminderOpen = (params) => {
  return request({
    url: `/v1/basic/reminder/open`,
    method: 'PUT',
    params
  })
}

// 获取各项提醒时间列表
export const editReminderTime = (params) => {
  return request({
    url: `/v1/basic/reminder`,
    method: 'PUT',
    params
  })
}
// 获取提醒类别列表
export const reminderType = (params) => {
  return request({
    url: `/v1/basic/reminder/type`,
    method: 'GET',
    params
  })
}
// 不再提醒
export const reminderIgnore = (data) => {
  return request({
    url: `/v1/user/reminder/ignore`,
    method: 'POST',
    data
  })
}

// 检测是否有快到期的人员信息
export const userReminderHome = (params) => {
  return request({
    url: `v1/user/reminder/home`,
    method: 'GET',
    params
  })
}
